import cashbook

def main():
    while True:
        print("\n提供业务：")
        print("1.显示账单（总支出、总收入、结余")
        print("2.记录账单")
        print("3.退出")
        choice = int(input('请输入你想要进行的操作：'))
        if choice == 1:
            cashbook.show_bill()
        elif choice == 2:
            cashbook.add_bill()
        elif choice == 3:
            print('退出成功')
            break
        else:
            print('输入有误，请重新输入')

if __name__ == '__main__':
    main()